package com.ndood.reconciliation.domain.service;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ndood.api.domain.record.receive.v1.service.RecoRecPlatformOfflineOfficialAlif2fService;
import com.ndood.reconciliation.base.pojo.ReconInfo;

/**
 * 支付宝对账服务
 */
@Service
public class AlipayReconService {

	@Autowired
 	private RecoRecPlatformOfflineOfficialAlif2fService recoRecPlatformOfflineOfficialAlif2fService;
	
	/**
	 * 1 支付宝对账
	 */
	public void doWithReconciliation(ReconInfo reconInfo) throws ParseException {
		// Step1: 获取交易流水中的appid集合
		List<Map<String,String>> appList = recoRecPlatformOfflineOfficialAlif2fService.getLastDayRecAppList();
		if(appList.isEmpty()) {
			return;
		}
		
		// Step2: 下载对账单并解析
		
		// Step3: 对账
	}

}
